<!DOCTYPE html >
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
</head>
<body>
<h2>User Page</h2>

<shiro:hasRole name="admin">
    这是Admin权限
</shiro:hasRole>
<shiro:hasRole name="user">
    这是User权限
</shiro:hasRole>

</body>
</html>